<div class="info-main mt-20">
        <div class="info-left bfz-22">
      		<span><i class="fa fa-file-o"></i></span>
        </div>
        <div class="info-right bfz-78">
        	<div class="top">
        		<p class="fw-600"><span>名称：</span><span class="user-protocol-name"></span></p>
        		<p style=" display: inline-flex;"><span>私有协议描述：</span><span class='details-memo text-change-line' style="width: 360px;"></span></p>
        	</div>
        	<div class="bottom">
				<table class="table">
                    <thead>
                    <tr>
                        <th>字段类型</th>
                        <th>数据类型</th>
                        <th>k值</th>
                        <th>单位</th>
                    </tr>
                    </thead>
                    <tbody class="userProtocolTbody">
                    </tbody>
                </table>
        	</div>
        	
        </div>
  	</div>

<script type="text/javascript">
	$(function(){
		var id={{id}}
	    $.ajax({
	        url:'/userProtocol/getUserProtocol',
	        type:'post',
	        data:{'id':id},
	        dataType:'json',
	        success:function(json){
	           $(".user-protocol-name").text(json.data.name);
               if(json.data.memo){
                    $('.details-memo').html('<span class="user-protocol-memo">'+json.data.memo+'</span>')
               }
	           // $(".user-protocol-memo").text(json.data.memo);
	           $.each(json.data.ktvlist,function(i,item){
	           		$('.userProtocolTbody').append("<tr>"+
                        "<td>"+item.kname+"</td>"+
                        "<td>"+type_onversion(item.t)+"</td>"+
                        "<td>"+item.k+"</td>"+
                        "<td>"+item.t_description+"</td>"+
                    "</tr>")
	           })
	       
	        }
	    })
        
        
	})
</script>